package cn.wolfcode.car.business.domain;

import cn.wolfcode.car.base.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
@ToString
public class Customer {
    public static final Integer OPENSTATE_OPEN = 0;    //经营状态, 0 开业
    public static final Integer OPENSTATE_LOGOUT = 1;  //经营状态, 1 注销
    public static final Integer OPENSTATE_BANKRUPT = 2;//经营状态, 2 破产

    private Long id;

    /** 企业名称*/
    private String customerName;

    /** 法定代表人*/
    private String legalLeader;

    /** 成立时间*/
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date registerDate;

    /** 经营状态, 0 开业、1 注销、2 破产*/
    private Integer openState = OPENSTATE_OPEN;

    /** 所属地区*/
    private Integer province;

    /** 注册资本,(万元)*/
    private BigDecimal regCapital;

    /** 所属行业*/
    private String industry;

    /** 经营范围*/
    private String scope;

    /** 注册地址*/
    private String regAddr;

    /** 录入时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date inputTime;

    /** 录入人 id*/
    private Long inputUser;

    /** 录入人 */
    private User user;

}